package com.jqr.activity.viewpagefragmentdemo;

import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager2.widget.ViewPager2;

import android.os.Bundle;

import com.jqr.activity.viewpagefragmentdemo.adapters.ViewPagerAdapter;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


        ViewPager2 viewPager2=findViewById(R.id.viewPage);

        ViewPagerAdapter viewPageAdapter=new ViewPagerAdapter();
        viewPager2.setAdapter(viewPageAdapter);
    }
}